package com.t.bricks.bussiness.db.dao.voterecord;

import com.t.bricks.bussiness.db.dao.common.BaseDao;
import com.t.bricks.bussiness.db.entity.voterecord.VoteRecord;
import com.t.bricks.model.MsgEmity;

public interface VoteRecordDao<T> extends BaseDao<T> {
	
	/**
	 * 添加
	 * @Param voteRecord
	 * @return MsgEmity
	 */
	MsgEmity add(VoteRecord voteRecord);

	/**
	 * 检查待新增内容是否存在重复数据
	 * @Param voteRecord
	 * @return MsgEmity
	 */
	MsgEmity checkRepeatByAdd(VoteRecord voteRecord);

	/**
	 * 修改状态
	 * @param sId 编号
	 * @param iState 状态值
	 * @param iVersion 记录版本号
	 * @param sMemo 备注
	 * @return MsgEmity 返回执行情况
	 */
	MsgEmity changeState(String sId, Integer iState, Integer iVersion, String sMemo);

}
